#!/bin/env ruby
# encoding: utf-8
require_relative '../spec/spec_helper'
require_relative '../spec/commons/user_auth'
require_relative '../spec/commons/check_page'

describe 'Login Page' do
  before {
    
  }

  context "when logged in" do
    it "then he can work with system"  do            
      check_login_page()
      sign_in('mutual_1_koun@list.ru', '11qqAA**')
    end
  end
  
  context "when logged in from  homepage" do
    it "then he can work with system"  do      
      #goto ""
      user_logout()
      sign_in_homepage('mutual_1_koun@list.ru', '11qqAA**', 'Red_Klin')
    end
  end

  context "when logged out" do
    it "then he can't work with system"  do
      user_logout()
    end
  end

end
